package org.jeecg.modules.outbound.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.modules.outbound.entity.BussOutboundOrderInformation;
import org.jeecg.modules.outbound.entity.BussPackageOutboundOrderInformation;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @Description: 出库单管理
 * @Author: jeecg-boot
 * @Date:   2024-06-18
 * @Version: V1.0
 */
@Data
@ApiModel(value="buss_package_outbound_order_managementPage对象", description="出库单管理")
public class BussPackageOutboundOrderManagementPage {

	/**主键*/
	@ApiModelProperty(value = "主键")
    private String id;
	/**单据编号*/
	@Excel(name = "单据编号", width = 15)
	@ApiModelProperty(value = "单据编号")
    private String code;
	/**出库类型*/
	@Excel(name = "出库类型", width = 15)
	@ApiModelProperty(value = "出库类型")
    private String outboundType;
	/**仓库*/
	@Excel(name = "仓库", width = 15, dictTable = "erp_warehouse", dicText = "name", dicCode = "id")
    @Dict(dictTable = "erp_warehouse", dicText = "name", dicCode = "id")
	@ApiModelProperty(value = "仓库")
    private String warehouseId;
	/**上级单号*/
	@Excel(name = "上级单号", width = 15)
	@ApiModelProperty(value = "上级单号")
    private String superiorOrderNumber;
	/**出库日期*/
	@Excel(name = "出库日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "出库日期")
    private Date outboundDate;
	/**供应商*/
	@Excel(name = "供应商", width = 15, dictTable = "erp_supplier", dicText = "name", dicCode = "id")
    @Dict(dictTable = "erp_supplier", dicText = "name", dicCode = "id")
	@ApiModelProperty(value = "供应商")
    private String supplierId;
	/**客户名称*/
	@Excel(name = "客户名称", width = 15)
	@ApiModelProperty(value = "客户名称")
    private String cutomerName;
	/**部门车间*/
	@Excel(name = "部门车间", width = 15, dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
	@ApiModelProperty(value = "部门车间")
    private String departmentWorkshop;
	/**备注*/
	@Excel(name = "备注", width = 15)
	@ApiModelProperty(value = "备注")
    private String remark;
	/**创建人*/
	@ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
	@ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
	@ApiModelProperty(value = "所属部门")
    private String sysOrgCode;

	@ExcelCollection(name="出库单信息")
	@ApiModelProperty(value = "出库单信息")
	private List<BussPackageOutboundOrderInformation> bussOutboundOrderInformationList;
	@ExcelCollection(name="出库单明细")
	@ApiModelProperty(value = "出库单明细")
	private List<BussPackageOutboundOrderDetailVo> outboundOrderDetailList;

}
